package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.CustomerRelevanceCreateValidate;
import com.mdd.admin.validate.CustomerRelevanceUpdateValidate;
import com.mdd.admin.validate.CustomerRelevanceSearchValidate;
import com.mdd.admin.vo.CustomerRelevanceListedVo;
import com.mdd.admin.vo.CustomerRelevanceDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 客户关联服务接口类
 * @author LikeAdmin
 */
public interface ICustomerRelevanceService {

    /**
     * 客户关联列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<CustomerRelevanceListedVo>
     */
    PageResult<CustomerRelevanceListedVo> list(PageValidate pageValidate, CustomerRelevanceSearchValidate searchValidate);

    /**
     * 客户关联详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return CustomerRelevanceDetailVo
     */
    CustomerRelevanceDetailVo detail(Integer id);

    /**
     * 客户关联新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(CustomerRelevanceCreateValidate createValidate);

    /**
     * 客户关联编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(CustomerRelevanceUpdateValidate updateValidate);

    /**
     * 客户关联删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
